-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] A third gfx example #2072
Conversation
cf574fc
to
34803c4
Compare
I'll reopen this when I work on more examples again. |
58b7c0d
to
d485efd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get around using the takeable-option and manually dropped things?
We can get around manually dropping things by ordering the members in the struct definitions in the order we want to drop them. I feel, however, that manually drop helps document the order in which you should be dropping things. I think you'll agree that It would be annoying if changing the order of the members in a struct caused bugs. As for takeable, no. The hal destroy functions want ownership of the struct members & drop only gets an |
Do you really have to drop things in a specific order with HAL? AFAIK, Vulkan says destruction order can be arbitrary. |
Signed-off-by: Hal Gentz <[email protected]>
d485efd
to
e314b3c
Compare
Other than the swapchain, no. I removed all the |
Thank you! |
@kvark You can compare the two versions and see which you prefer. I personally like |
@zegentzy thank you, looks great! Let's fix the CI issues and get this merged. |
Signed-off-by: Hal Gentz <[email protected]>
838ac4d
to
d5d38e6
Compare
@kvark Done. |
Depends on #2071 and #2052
PR checklist:
make
succeeds (on *nix)make reftests
succeeds